package com.gitee.mars.marsquickframe.controller;

import com.gitee.mars.marsquickframe.generator.CodeGenerator;
import com.gitee.mars.marsquickframe.response.result.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wq
 * @version 1.0
 * @date 2021/03/15 13:36
 */
@RestController
public class GeneratorController {


    /**
     * 代码生成
     *
     * @param name 表名称
     * @return R
     */
    @GetMapping("/genCode")
    public R genCode(String name) {
        CodeGenerator.genCode(name);
        return R.success();
    }
}
